<?php

namespace app\common\validate\site;

use think\Validate;

class UserOauthValidate extends Validate
{

    protected $rule =   [
        'id' => 'require',
        'site_id' => 'require|number',
        'user_id' => 'require|number',
        'oauth_type' => 'require',
        'oauth_id' => 'require',
    ];

    protected $message  =   [
        'site_id.require' => "站点必填",
        'user_id' => '用户必填',
        'oauth_type' => '三方平台类型必填',
        'oauth_id' => '三方平台键必填',
    ];

    protected $scene = [
        'togetherAdd'  =>  ['site_id','oauth_id', 'oauth_type'],
    ];




}
